class AddRoleData < ActiveRecord::Migration
  def self.up
    Role.create(:title => 'Super Administrator',
              :encoding => 'sa',
              :about => '超级管理员')
    Role.create(:title => 'Normal Administrator',
              :encoding => 'na',
              :about => '管理员')
    Role.create(:title => 'Librarian - Editor',
              :encoding => 'ne',
              :about => '信息采集员')
    Role.create(:title => 'Librarian',
              :encoding => 'lb',
              :about => '图书馆员')
  end

  def self.down
    Role.delete_all
  end
end
